<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="../axios.js"></script>
  <script>
    // fetch('http://127.0.0.1:3000/books?id=1', {
    //   method: 'get'
    // }).then((data) => {
    //   return data.text()
    // }).then((data) => {
    //   console.log(data);
    // })
    async function person() {
      const str = await axios.get('http://127.0.0.1/axios', {
        params: {
          id: 3
        }
      })
      console.log(str);
    }
    parson()
  </script>
</body>

</html>